package com.aspose.cells;

class zala implements zahe {
   private Object a;
   private boolean b;
   private zxp c;
   private zif d = null;
   private com.aspose.cells.b.a.b.zg e;
   private boolean f = true;
   private Color g;
   private int h;
   private String i;
   private int j;
   private zbcp k;
   private zbtt l;
   private boolean m = false;

   zala(zif var1, Object var2, int var3) {
      this.d = var1;
      this.a = var2;
      this.h = var3;
      this.b = false;
      this.c = new zxp();
   }

   public boolean b() {
      return this.b;
   }

   public void a(boolean var1) {
      this.b = var1;
   }

   public com.aspose.cells.b.a.b.zg c() {
      if (this.e == null) {
         if (this.a instanceof zakw) {
            this.e = ((zakw)this.a).d().i();
         } else if (this.a instanceof zip) {
            this.e = ((zip)this.a).b();
         } else {
            this.e = zbuk.a(this.d.Z());
         }
      }

      if (!this.a().d() && !this.a().c()) {
         return this.e;
      } else {
         com.aspose.cells.b.a.b.zg var1 = new com.aspose.cells.b.a.b.zg(this.e.b(), 0.7F * this.e.h(), this.e.k());
         return var1;
      }
   }

   public void a(com.aspose.cells.b.a.b.zg var1) {
      this.e = var1;
   }

   public com.aspose.cells.b.a.b.zg d() {
      if (this.e == null) {
         if (this.a instanceof zakw) {
            this.e = ((zakw)this.a).d().i();
         } else if (this.a instanceof zip) {
            this.e = ((zip)this.a).b();
         } else {
            this.e = zbuk.a(this.d.Z());
         }
      }

      return this.e;
   }

   public Color e() {
      if (this.f) {
         if (this.a instanceof zakw) {
            return ((zakw)this.a).d().j();
         } else {
            return this.a instanceof zip ? ((zip)this.a).c() : this.d.aa();
         }
      } else {
         return this.g;
      }
   }

   public void a(Color var1) {
      this.f = false;
      this.g = var1;
   }

   public zagt a() {
      return this.c;
   }

   public int f() {
      return this.h;
   }

   String g() {
      return this.i;
   }

   void a(String var1) {
      this.i = var1;
   }

   int h() {
      return this.j;
   }

   void a(int var1) {
      this.j = var1;
   }

   zbcp i() {
      return this.k;
   }

   void a(zbcp var1) {
      this.k = var1;
   }

   zbtt j() {
      return this.l;
   }

   void a(zbtt var1) {
      this.l = var1;
   }

   protected void finalize() throws Exception {
      this.b(false);
   }

   public void k() {
      this.b(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void b(boolean var1) {
      if (!this.m) {
         if (var1 && this.e != null) {
            this.e.n();
         }

         this.m = true;
      }

   }
}
